package Fenetre;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;

public class PanelSeuil extends JPanel{

	private static final long serialVersionUID = -2851310407923032598L;
	
	private JLabel labelSeuil;
	private JSpinner spinnerSeuil;
	
	public PanelSeuil(){
		ajouterObjetsGraphiques();
	}
	
	private void ajouterObjetsGraphiques(){
		labelSeuil = new JLabel("Seuil");
		spinnerSeuil = new JSpinner();		
		spinnerSeuil.setModel(new SpinnerNumberModel(1, 0, 100, 1));
		this.add(labelSeuil);
		this.add(spinnerSeuil);
	}
	
	public int getSeuil(){
		return Integer.parseInt(spinnerSeuil.getValue().toString());
	}	
	
}
